icon-helper: don't warn out when the icon size is GTK_ICON_SIZE_INVALID
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 30 Nov 2011 23:32:01 +0000 (18:32 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 30 Nov 2011 23:32:01 +0000 (18:32 -0500)
commitd300ddc5e49f14c42cf9fb1a897899fb65b91da9
tree1f66a1a0f4aaca51cdc82a36f09771c739d77ad9
parente37c55aa3eeeec6860de01e937b332697eecc529
icon-helper: don't warn out when the icon size is GTK_ICON_SIZE_INVALID

We can call ensure_icon_size() for an empty image; don't warn out in
that case, but just return a zero width.
gtk/gtkiconhelper.c